package com.xiyu.service.errorCode.setting;

import com.xiyu.service.framework.exception.ErrorCode;

/**
* businessField 错误码枚举类
*
* businessField 业务字段，使用 1004001000段
*/
public interface BusinessFieldErrorCode {
    Integer ERROR_CODE_START_CODE = 1004001000;

    ErrorCode SETTING_BUSINESS_FIELD_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE + 1, "业务字段不存在");
    ErrorCode SETTING_BUSINESS_FIELD_OPTION_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE + 2, "业务字段选项不存在");
    ErrorCode SETTING_BUSINESS_FIELD_DUPLICATE = new ErrorCode(ERROR_CODE_START_CODE + 3, "业务模块：{}下已存在名字为{}的业务字段");
    ErrorCode SETTING_BUSINESS_FIELD_OPTION_DUPLICATE = new ErrorCode(ERROR_CODE_START_CODE + 4, "已存在名称为{}的字段选项");
    ErrorCode SETTING_BUSINESS_FIELD_OPTION_NOT_EMPTY = new ErrorCode(ERROR_CODE_START_CODE + 5, "选项名称不能为空");
    ErrorCode SETTING_BUSINESS_FIELD_EMPTY = new ErrorCode(ERROR_CODE_START_CODE + 6, "业务字段：{}不存在");
    ErrorCode SETTING_BUSINESS_FIELD_OPTION_EMPTY = new ErrorCode(ERROR_CODE_START_CODE + 7, "业务字段选项：{}不存在");
    ErrorCode SETTING_BUSINESS_FIELD_NOT_DELETE = new ErrorCode(ERROR_CODE_START_CODE + 8, "{}不能被删除");
}